/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao.dto;

/**
 *
 * @author loo
 */
import util.Util;

public class StatutDto {
	private String _statut;
        /*
         * Correspondance status bo et dto
         * Cree         = CR
         * Planifiee    = PL
         * EnCours      = EN
         * Cloturee     = CL
         * Suivis       = SU
         * Deplanifiee  = DE
         * Annulee      = AN
        */
        
        //Constructeurs
	public StatutDto(  String statut) {
		setStatut(statut);
	}
                
	//Setters	
        public void setStatut(String statut) {
		Util.checkString(statut);
                if (statut.equals("CR") || statut.equals("PL") || statut.equals("EN") ||
                    statut.equals("CL") || statut.equals("SU") || statut.equals("DE") ||   
                    statut.equals("AN")) {
                    this._statut = statut;    
                } else {
                    throw new IllegalArgumentException();
                }
	}

        //Getters 
	public String getStatut() {
		return _statut;
	}
	
        

}

